package com.instance;

public class InstanceVal {
	static InstanceVal instance;
	private  int b=11;
	private InstanceVal(){};
	public static InstanceVal getInstance(){
		if(instance==null){
			instance=new InstanceVal();
		}
		return instance;
	}
	public int add(){
		return b++;
	}
	public int getB(){
		return b;
	};

}
